﻿using Volo.Abp.Json;
using Volo.Abp.Modularity;

namespace Generic.App.HttpApi
{
    [DependsOn(typeof(Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule),
        typeof(Application.Contracts.GenericAppApplicationContractsModule))]
    public class GenericAppHttpApiModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpJsonOptions>(options =>
            {
                options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
            });
        }
    }
}